export default {
  path: '/userDistribution',
  component: () => import('@/views/layout'),
  meta: { scrollToTop: true },
  children: [
    // 直接重定向到我的安许 点查安许打开  我的安许  路由页面
    { path: '/userDistribution', redirect: '/userDistribution/staff' },
    {
      path: '/userDistribution',
      component: () => import('@/views/user-distribution'),
      // 三级路由
      children: [
        // 业务员  路由
        { path: '/userDistribution/staff', component: () => import('@/views/user-distribution/components/staff') },
        // 管理员 路由
        { path: '/userDistribution/admin', component: () => import('@/views/user-distribution/components/admin') },
        // 我的组员 路由
        { path: '/userDistribution/myStaff', component: () => import('@/views/user-distribution/components/mystaff') },
        // 客户分发 路由
        { path: '/userDistribution/distribute', component: () => import('@/views/user-distribution/components/distribute') }
      ]
    }
  ]
}
